package com.open.api.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.product.module.sys.dto.SystemUserDto;
import com.product.module.sys.service.SystemUserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author bo bo
 * @Package com.open.api.controller
 * @date 2020/7/31 13:36
 * @copyright: Copyright (c) 2020
 * @version: V1.0
 * @Description:
 */
@RestController
@RequestMapping("system_user")
@Api("系统用户管理")
public class SystemUserController {

    @Reference
    private SystemUserService systemUserService;

    @GetMapping("queryList")
    @ApiOperation("查询list")
    public String queryList(){
        Map<String, Object> map = new HashMap<>();
        List<SystemUserDto> systemUserDtos = systemUserService.queryList(map);
        return systemUserDtos+"";
    }

}
